package com.catering.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.catering.project.mapper.Dish2Mapper;
import com.catering.project.domain.Dish2;
import com.catering.project.service.IDish2Service;

/**
 * 菜品图片信息展示Service业务层处理
 * 
 * @author cui
 * @date 2024-10-21
 */
@Service
public class Dish2ServiceImpl implements IDish2Service 
{
    @Autowired
    private Dish2Mapper dish2Mapper;

    /**
     * 查询菜品图片信息展示
     * 
     * @param did 菜品图片信息展示主键
     * @return 菜品图片信息展示
     */
    @Override
    public Dish2 selectDish2ByDid(Long did)
    {
        return dish2Mapper.selectDish2ByDid(did);
    }

    /**
     * 查询菜品图片信息展示列表
     * 
     * @param dish2 菜品图片信息展示
     * @return 菜品图片信息展示
     */
    @Override
    public List<Dish2> selectDish2List(Dish2 dish2)
    {
        return dish2Mapper.selectDish2List(dish2);
    }

    /**
     * 新增菜品图片信息展示
     * 
     * @param dish2 菜品图片信息展示
     * @return 结果
     */
    @Override
    public int insertDish2(Dish2 dish2)
    {
        return dish2Mapper.insertDish2(dish2);
    }

    /**
     * 修改菜品图片信息展示
     * 
     * @param dish2 菜品图片信息展示
     * @return 结果
     */
    @Override
    public int updateDish2(Dish2 dish2)
    {
        return dish2Mapper.updateDish2(dish2);
    }

    /**
     * 批量删除菜品图片信息展示
     * 
     * @param dids 需要删除的菜品图片信息展示主键
     * @return 结果
     */
    @Override
    public int deleteDish2ByDids(Long[] dids)
    {
        return dish2Mapper.deleteDish2ByDids(dids);
    }

    /**
     * 删除菜品图片信息展示信息
     * 
     * @param did 菜品图片信息展示主键
     * @return 结果
     */
    @Override
    public int deleteDish2ByDid(Long did)
    {
        return dish2Mapper.deleteDish2ByDid(did);
    }
}
